from django.db import models

# Create your models here.


#登录
class Lu(models.Model):
    mobile=models.CharField('手机号',max_length=11)
    class Meta:
        verbose_name_plural='登录'
        db_table='lu'
    def __str__(self):
        return self.mobile






#我的地址
class Di(models.Model):
    name = models.CharField('姓名', max_length=200)
    mobile = models.CharField('手机号', max_length=11)
    mo = models.CharField(max_length=10,choices=((0,'默认'),(1,'无'),),verbose_name='默认地址')
    zhi=models.CharField('详情地址', max_length=200)
    class Meta:
        verbose_name_plural='地址'
        db_table='di'
    def __str__(self):
        return self.mobile
